package com.coder.rental.service;

import com.coder.rental.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coder.rental.vo.RolePermissionVo;
import io.swagger.models.auth.In;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.LongSummaryStatistics;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author caelan
 * @since 2025-07-14
 */
public interface IPermissionService extends IService<Permission> {
        List<Permission> selectPermissionListByUserId(Integer userId);

        List<Permission> selectList();

        List<Permission> selectTree();

        boolean hasChildren(Integer id);

        RolePermissionVo selectPermissionTree(Integer userId,Integer roleId);
}
